import { createRouter, createWebHashHistory } from 'vue-router'
import AdminView from '@/views/AdminView/index.vue'
import MapView from '@/views/MapView/index.vue'
import LargeScreen from '@/views/LargeScreen/index.vue'
import AddExcel from '@/views/AddExcel/index.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/map',
      name: 'map',
      component: MapView,
    },
    {
      path: '/admin',
      component: AdminView,
    },
    {
      path: '/addExcel',
      component: AddExcel,
    },
    {
      path: '/',
      component: LargeScreen,
    },
  ],
})

export default router
